forming a cube vertically